
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class CampFeteCfg : public ManualSingleton <CampFeteCfg>
{
	friend ManualSingleton <CampFeteCfg>;
public:
	CampFeteCfg();
	~CampFeteCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const CampFeteCfgInfo *GetCampFeteCfgInfo(int32_t fete_Id);
	const CampFeteCfgMap *GetCampFeteCfgMap() { return &m_CampFeteCfgMap; }
private:
	CampFeteCfgMap m_CampFeteCfgMap;
};

#define  g_MakeCampFeteCfgTable() (CampFeteCfg::Instance())
#define  g_GetCampFeteCfgTable() (CampFeteCfg::GetInstance())
#define  g_DelCampFeteCfgTable() (CampFeteCfg::Destroy())